home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / program / qlib205.zip / QLIB.ZIP / H / ERRNO.H < prev    next >
C/C++ Source or Header  |  1997-03-15  |  3KB  |  72 lines

  1. // mostly copied from Borland's ERROR.H file
  2.  
  3. #ifndef __ERROR_H__
  4. #define __ERROR_H__
  5.  
  6. #include <stddef.h>
  7.  
  8. #ifdef __cplusplus
  9.   extern "C" {
  10. #endif
  11.  
  12. extern word errno;
  13.  
  14. #ifdef __cplusplus
  15.   }
  16. #endif
  17.  
  18. #define EZERO    0      /* Error 0                  */
  19. #define EINVFNC  1      /* Invalid function number  */
  20. #define ENOFILE  2      /* File not found           */
  21. #define ENOPATH  3      /* Path not found           */
  22. #define ECONTR   7      /* Memory blocks destroyed  */
  23. #define EINVMEM  9      /* Invalid memory block address */
  24. #define EINVENV 10      /* Invalid environment      */
  25. #define EINVFMT 11      /* Invalid format           */
  26. #define EINVACC 12      /* Invalid access code      */
  27. #define EINVDAT 13      /* Invalid data             */
  28. #define EINVDRV 15      /* Invalid drive specified  */
  29. #define ECURDIR 16      /* Attempt to remove CurDir */
  30. #define ENOTSAM 17      /* Not same device          */
  31. #define ENMFILE 18      /* No more files            */
  32.  
  33. #define ENOENT   2      /* No such file or directory*/
  34. #define EMFILE   4      /* Too many open files      */
  35. #define EACCES   5      /* Permission denied        */
  36. #define EBADF    6      /* Bad file number          */
  37. #define ENOMEM   8      /* Not enough core          */
  38. #define EFAULT  14      /* Unknown error            */
  39. #define ENODEV  15      /* No such device           */
  40. #define EINVAL  19      /* Invalid argument         */
  41. #define E2BIG   20      /* Arg list too long        */
  42. #define ENOEXEC 21      /* Exec format error        */
  43. #define EXDEV   22      /* Cross-device link        */
  44. #define ENFILE  23      /* Too many open files      */
  45. #define ECHILD  24      /* No child process         */
  46. #define ENOTTY  25      /* UNIX - not MSDOS         */
  47. #define ETXTBSY 26      /* UNIX - not MSDOS         */
  48. #define EFBIG   27      /* UNIX - not MSDOS         */
  49. #define ENOSPC  28      /* No space left on device  */
  50. #define ESPIPE  29      /* Illegal seek             */
  51. #define EROFS   30      /* Read-only file system    */
  52. #define EMLINK  31      /* UNIX - not MSDOS         */
  53. #define EPIPE   32      /* Broken pipe              */
  54. #define EDOM    33      /* Math argument            */
  55. #define ERANGE  34      /* Result too large         */
  56. #define EEXIST  35      /* File already exists      */
  57. #define EDEADLOCK 36    /* Locking violation        */
  58. #define EPERM   37      /* Operation not permitted  */
  59. #define ESRCH   38      /* UNIX - not MSDOS         */
  60. #define EINTR   39      /* Interrupted function call */
  61. #define EIO     40      /* Input/output error       */
  62. #define ENXIO   41      /* No such device or address */
  63. #define EAGAIN  42      /* Resource temporarily unavailable */
  64. #define ENOTBLK 43      /* UNIX - not MSDOS         */
  65. #define EBUSY   44      /* Resource busy            */
  66. #define ENOTDIR 45      /* UNIX - not MSDOS         */
  67. #define EISDIR  46      /* UNIX - not MSDOS         */
  68. #define EUCLEAN 47      /* UNIX - not MSDOS         */
  69.  
  70. #endif
  71.  
  72.